html,
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

h2 {
    margin-top: 0px;
}

p {
    margin-bottom: 0px;
}

.form-container {
    background-color: #fff;
    padding: 0px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px !important;
    /* Tambahkan !important */
    width: 100%;
    text-align: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.form-wrapper {
    position: relative;
    width: 200%;
    display: flex;
    transform: translateX(0);
    transition: transform 0.5s ease;
}

.form {
    width: 50%;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-form {
    opacity: 1;
}

.form img.logo {
    width: 100%;
    /* Memastikan logo menyesuaikan lebar kontainer */
    max-width: 100px;
    /* Sesuaikan ukuran maksimum logo jika perlu */
    height: auto;
    /* Menjaga rasio aspek gambar */
    margin-bottom: 0px;
    /* Jarak antara logo dan judul */
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    outline: none;
    background: transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    padding-top: 10px;
    box-sizing: border-box;
    /* Ensure padding and border are included in width */
}

.input-group input::placeholder {
    color: transparent;
}

.input-group label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    background-color: #fff;
    padding: 0 5px;
    pointer-events: none;
    transition: all 0.3s ease;
    color: #999;
    font-size: 14px;
    z-index: 1;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.input-group input:focus+label,
.input-group input:not(:placeholder-shown)+label {
    top: -10px;
    left: 10px;
    font-size: 12px;
    color: #4a90e2;
    transform: translateY(0) scale(0.85);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Tambahan untuk vertikal align */
    margin-bottom: 20px;
    font-size: 15px;
    color: #666;
    gap: 10px;
    /* Tambah jarak antara remember me dan forgot password */
}

.options input {
    margin-right: 5px;
    /* Tambahkan sedikit jarak antara checkbox dan label */
}

.options a {
    color: #4a90e2;
    text-decoration: none;
}

.options a:hover {
    text-decoration: underline;
}

.btn {
    background-color: #3674b5;
    /* Warna biru utama */
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(54, 162, 235, 0.5);
}

/* Efek hover dengan kilau */
.btn:hover {
    background-color: #3674b5;
    /* Biru sedikit lebih gelap saat hover */
    box-shadow: 0 6px 15px rgba(54, 162, 235, 0.7);
    transform: scale(1.05);
}

/* Efek kilau animasi */
.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.8s ease-in-out;
}

/* Kilau muncul saat hover */
.btn:hover::before {
    left: 100%;
}

/* Efek klik */
.btn:active {
    transform: scale(0.98);
    box-shadow: 0 3px 8px rgba(54, 162, 235, 0.4);
}

.toggle-form {
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.toggle-form a {
    color: #4a90e2;
    text-decoration: none;
}

.toggle-form a:hover {
    text-decoration: underline;
}

.eye-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #cecece;
}

.eye-icon i {
    pointer-events: none;
}

.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.text-danger {
    color: #dc3545 !important;
}